package com.info.zhiduoduo.repository.mapper.maker;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.info.zhiduoduo.repository.entity.maker.MakerCycleRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface MakerCyCleRecordMapper extends BaseMapper<MakerCycleRecord> {

    @Select("SELECT count(*) FROM `zdd_maker_cycle_record` " +
            "WHERE userid = #{userId} " +
            "AND special_handling = 1")
    int specialHandlingCount(@Param("userId") Integer userId);

}
